<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JS导入方式</title>

    <script>
        console.log("hello,head标签的内联样式")
    </script>

    <script src="./myscript.js"></script>
</head>
<body>
    <h1>JavaScript的导入方式</h1>
    <script>
        console.log("hello,body标签的内联样式");
        alert("你好，内联样式弹窗")
    </script>
</body>
</html>

<!-- head -> 外联 -> body -->